package cocoaas3.flash{

	import cocoaas3.*;
	import flash.display.*;

	public class UITabBar extends UIView {

		//
		// original member
		//
		public var delegate:UITabBarController;
		public var items:Vector.<UITabBarItem> = new Vector.<UITabBarItem>();

		// The currently selected item on the tab bar.
		// Changes to this property show visual feedback in the user interface. 
		// このUITabBarが属するUITabBarControllerが、タブを開いた時に呼ばれる
		public function set selectedItem( val:UITabBarItem ):void{
			if( _symbol ){
				if( _symbol.hasOwnProperty("selectedItem") ){
					_symbol.selectedItem = val;
				} else {
					throw new Error( this +" UITabBar内のシンボルに selectedItem setter を実装してください" );
				}
			}
		}

		//
		// custom member
		//
		private var _symbol:MovieClip;


		//
		// original functions
		//
		public function UITabBar( symbol:MovieClip ){
			_symbol = symbol;
			addChild( _symbol );
		}



		// Sets the items on the tab bar, with or without animation.
		public function setItems( vec:Vector.<UITabBarItem>, animated:Boolean=true ):void{
		}



		//
		// custom functions
		//
	}
}